package com.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-07-16
 * Time: 14:19
 */
@Slf4j
@RequestMapping("/test")
@RestController
public class test {

    @RequestMapping("/hi")
    public student hi(){

        student student=new student();
        student.setAge(12);
        student.setId(13);
        student.setName("ls");
        System.out.println(student);
        return student;

    }

    @RequestMapping("/en")
    public ResultCode en(){
        System.out.println(ResultCode.UNLOGIN);
        return ResultCode.UNLOGIN;
    }

}
